<?php
	// Load the QCubed Development Framework
	require('../qcubed.inc.php');

	 class TestjTab extends QForm {
             public $MainTab;
             protected $txtpnl1;
             protected $pnl1;
             public $dtpDatePicker;
             public $calCalendarPopup;

             protected function Form_Create() {
                $this->MainTab = new JTab("Main");
                $this->MainTab->AddTab("M0 Tab");
                    $this->MainTab->AddTab("Child-M0-A Tab",null, "M0 Tab");
                    $this->MainTab->AddTab("Child-M0-B Tab",null, "M0 Tab");
                    $this->MainTab->AddTab("Child-M0-C Tab",null, "M0 Tab");
                    $this->MainTab->AddTab("Child-M0-D Tab",null, "M0 Tab");
                    
                $this->MainTab->AddTab("M1 Tab");
                    $this->MainTab->AddTab("Child-M1-A Tab",null, "M1 Tab");
                    $this->MainTab->AddTab("Child-M1-B Tab",null, "M1 Tab");
                    $this->MainTab->AddTab("Child-M1-C Tab",null, "M1 Tab");
                $this->MainTab->AddTab("M2 Tab");
                    $this->MainTab->AddTab("Child-M2-A Tab",null, "M2 Tab");
                    $this->MainTab->AddTab("Child-M2-B Tab",null, "M2 Tab");
                $this->MainTab->AddTab("M3 Tab");
                    $this->MainTab->AddTab("Child-M3-A Tab",null, "M3 Tab");
                    $this->MainTab->AddTab("Child-M3-B Tab",null, "M3 Tab");
                $this->MainTab->AddTab("M4 Tab");
                    $this->MainTab->AddTab("Child-M4-A Tab",null, "M4 Tab");
                                        //For test order
                    $this->MainTab->AddTab("Child-M1-D Tab-$",null, "M1 Tab");
                    $this->MainTab->AddTab("Child-M4-V Tab-$",null, "M4 Tab");
                    $this->MainTab->AddTab("Child-M0-E Tab-$",null, "M0 Tab");
                    $this->MainTab->AddTab("SubChild-1-S-M0-E Tab-$",null, "Child-M0-E Tab-$");

                    $this->MainTab->AddTab("SubChild-1-S-M4-A Tab",null, "Child-M0-C Tab");
                    $this->MainTab->AddTab("SubChild-1-S-M4-B Tab",null, "Child-M0-C Tab");
                    $this->MainTab->AddTab("SubChild-1-S-M4-C Tab",null, "Child-M0-C Tab");

                $this->calCalendarPopup = new QCalendarPopup($this);
                $this->dtpDatePicker = new QDateTimePicker($this);
                $this->dtpDatePicker->DateTimePickerType = QDateTimePickerType::Time;
                
             }



         }
         TestjTab::Run('TestjTab',"TestjTab.tpl.php");